import Vue from 'vue'
import VueRouter from 'vue-router'
import Register from '@/views/Register'
import Login from '@/views/Login'
import userinfo from '@/views/userinfo'

Vue.use(VueRouter)

const routes = [
  {
    path: "/register",
    component: Register
  }, {
    path: "/login",
    component: Login
  },
  {
    path: "/userinfo",
    component: userinfo
  }

]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
